package com.wyp168.jvm001;

/**
 * @ClassName ClInitTest02
 * @Description TODO
 * @Author wyp168
 * @Date 2022/7/19 15:17
 */
public class ClInitTest02 {
    static class Person {
        public static int A = 1;
        static {
            A = 2;
        }
    }
    static class Man extends Person{
        private static int B = A;
    }
    public static void main(String[] args) {
        System.out.println(Man.B);
    }
}
